﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using pay.BLL;
public partial class guChina_1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      
          
                // string pwd ="";
                //string resultmsg=""; 
                //string endtime=""; 
                WebService.emoneybusiness eb = new WebService.emoneybusiness();
                string msg = " 您订购的益盟操盘手专业版6个月已激活成功，软件使用日期截止于2012-02-21";
                msg += ",软件登录用户名为您的手机号,密码为111111,如有疑问请拨打我们的";
                msg += "免费服务热线:4006708688";
                Response.Write(msg.Length+" "+msg);
                eb.SendMsg_Yicai("15201926379",msg);
                //string reValue = eb.QQ_AddFee("15201926379",6);
                ////string reValue = dbl.GetActiveUserPwd(tel, usetime);
                //if (string.IsNullOrEmpty(reValue))
                //{
                //    return;
                //}//if 用户还没有激活
                //var array = reValue.Split('|');
                //pwd = array[0]; //用户登录软件的密码
                //endtime = array[1]; //软件使用到期日
                //resultmsg = array[2]; //激活或延长提示消息


                //string msg = " 您订购的益盟操盘手专业版6个月" + resultmsg + "软件使用日期截止于" + endtime;
                //msg += ",软件登录用户名为您的手机号,密码为" + pwd + ",如有疑问请拨打我们的";
                //msg += "免费服务热线:400-670-8688";
                //msg = msg.Replace("msgResult:","");
                //msg = msg.Replace("endDate:","");
                //msg = msg.Replace("opPwd:","");
                //Response.Write(msg.Length+msg);
                //eb.SendMsg("18621528257", "您订购的益盟操盘手专业版6个月订购成功!");//发送短信
            //    pay.BLL.OrderBLL orderbll = new pay.BLL.OrderBLL();
            //    pay.DAL.OrderDAL orderdal = new pay.DAL.OrderDAL();

            //    if (orderbll.UpdateOrderSucess("GH2011072315585966") == true)
            //    {
            //        Response.Write("修改成功");
            //    }
            //    else
            //    {
            //        Response.Write("修改失败");
            //    }
            //}
            //catch(Exception ex)
            //{
            //    Response.Write(" 程序出错了:"+ex.Message);
            //}



                          
    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
}